package cn.aitrox.ry.bean;

import cn.aitrox.ry.enumtype.RespCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JwtTokenCheckResult<T> {

    private RespCodeEnum respCodeEnum;

    private T customPayload;

    private Date expiresAt;

    public Boolean success(){
        return RespCodeEnum.SUCCESS == respCodeEnum;
    }
}
